/*
Copyright (C) Ariff Ehsan, Abdul Hadi Fikri

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/*  Author : Ariff Ehsan
 *  Date   : June 18, 2009
 */


#ifndef __ANOS_CONFIG_H__
#define __ANOS_CONFIG_H__


/* define configuration */

#define LEDS4_LED0    PC1
#define LEDS4_LED1    PC2
#define LEDS4_LED2    PC3
#define LEDS4_LED3    PC4

#define LEDS4_GREEN   PC1
#define LEDS4_YELLOW  PC2
#define LEDS4_OREN    PC3
#define LEDS4_RED     PC4

#define LEDS4_PORT    PORTC
#define LEDS4_DDR     DDRC
#define LEDS4_SHIFT   1

#define CXBEE_ADDRESS 0
#define CXBEE_BAUD 115200
#define CXBEE_DEF_CHANNEL 26

#define C328R_BAUD 115200

#define XPACKET_LENGTH 80


enum xpacket_type_enums {

	XPACKET_TYPE_MOTOR = 0x10,
	XPACKET_TYPE_PING,
	XPACKET_TYPE_CAMERA,
};


/* include library header file */

#include <leds4/leds4.h>
#include <cxbee/cxbee.h>
#include <c328r/c328r.h>

#include "xmotor.h"
#include "xpacket.h"
#include "xutil.h"
#include "xcamera.h"


#endif // __ANOS_CONFIG_H__
